{"ast":null,"code":"import { alpha, getPath } from '@mui/system';\nexport var colorTransformations = {\n  primary: 'primary.main',\n  textPrimary: 'text.primary',\n  secondary: 'secondary.main',\n  textSecondary: 'text.secondary',\n  error: 'error.main'\n};\nvar transformDeprecatedColors = function transformDeprecatedColors(color) {\n  return colorTransformations[color] || color;\n};\nvar getTextDecoration = function getTextDecoration(_ref) {\n  var theme = _ref.theme,\n    ownerState = _ref.ownerState;\n  var transformedColor = transformDeprecatedColors(ownerState.color);\n  var color = getPath(theme, \"palette.\".concat(transformedColor), false) || ownerState.color;\n  var channelColor = getPath(theme, \"palette.\".concat(transformedColor, \"Channel\"));\n  if ('vars' in theme && channelColor) {\n    return \"rgba(\".concat(channelColor, \" / 0.4)\");\n  }\n  return alpha(color, 0.4);\n};\nexport default getTextDecoration;","map":{"version":3,"names":["alpha","getPath","colorTransformations","primary","textPrimary","secondary","textSecondary","error","transformDeprecatedColors","color","getTextDecoration","theme","ownerState","transformedColor","channelColor"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@mui/material/esm/Link/getTextDecoration.js"],"sourcesContent":["import { alpha, getPath } from '@mui/system';\nexport const colorTransformations = {\n  primary: 'primary.main',\n  textPrimary: 'text.primary',\n  secondary: 'secondary.main',\n  textSecondary: 'text.secondary',\n  error: 'error.main'\n};\nconst transformDeprecatedColors = color => {\n  return colorTransformations[color] || color;\n};\nconst getTextDecoration = ({\n  theme,\n  ownerState\n}) => {\n  const transformedColor = transformDeprecatedColors(ownerState.color);\n  const color = getPath(theme, `palette.${transformedColor}`, false) || ownerState.color;\n  const channelColor = getPath(theme, `palette.${transformedColor}Channel`);\n  if ('vars' in theme && channelColor) {\n    return `rgba(${channelColor} / 0.4)`;\n  }\n  return alpha(color, 0.4);\n};\nexport default getTextDecoration;"],"mappings":"AAAA,SAASA,KAAK,EAAEC,OAAO,QAAQ,aAAa;AAC5C,OAAO,IAAMC,oBAAoB,GAAG;EAClCC,OAAO,EAAE,cAAc;EACvBC,WAAW,EAAE,cAAc;EAC3BC,SAAS,EAAE,gBAAgB;EAC3BC,aAAa,EAAE,gBAAgB;EAC/BC,KAAK,EAAE;AACT,CAAC;AACD,IAAMC,yBAAyB,GAAG,SAA5BA,yBAAyB,CAAGC,KAAK,EAAI;EACzC,OAAOP,oBAAoB,CAACO,KAAK,CAAC,IAAIA,KAAK;AAC7C,CAAC;AACD,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiB,OAGjB;EAAA,IAFJC,KAAK,QAALA,KAAK;IACLC,UAAU,QAAVA,UAAU;EAEV,IAAMC,gBAAgB,GAAGL,yBAAyB,CAACI,UAAU,CAACH,KAAK,CAAC;EACpE,IAAMA,KAAK,GAAGR,OAAO,CAACU,KAAK,oBAAaE,gBAAgB,GAAI,KAAK,CAAC,IAAID,UAAU,CAACH,KAAK;EACtF,IAAMK,YAAY,GAAGb,OAAO,CAACU,KAAK,oBAAaE,gBAAgB,aAAU;EACzE,IAAI,MAAM,IAAIF,KAAK,IAAIG,YAAY,EAAE;IACnC,sBAAeA,YAAY;EAC7B;EACA,OAAOd,KAAK,CAACS,KAAK,EAAE,GAAG,CAAC;AAC1B,CAAC;AACD,eAAeC,iBAAiB"},"metadata":{},"sourceType":"module"}